package com.maxwell.googleplay.protocol;

import java.util.List;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.maxwell.googleplay.base.BaseProtocol;
import com.maxwell.googleplay.bean.AppInfoBean;

/**
 * @author  yue
 * @创建时间 2016-4-1上午10:36:38
 * @描述     TODO
 * 
 */
public class AppProtocol extends BaseProtocol<List<AppInfoBean>> {

	@Override
	public String getInterfaceKey() {
		
		return "app";
	}

	@Override
	public List<AppInfoBean> parseJson(String jsonString) {
		Gson gson = new Gson();
		/*==========泛型解析============*/
		
		return gson.fromJson(jsonString, new TypeToken<List<AppInfoBean>>(){}.getType());
	}

}
